package encore.portal.container;

import java.util.Map;

import javax.portlet.PortletPreferences;
import javax.portlet.PortletRequest;
import javax.portlet.PreferencesValidator;

import encore.portal.portlet.models.PortletDefinition;

public interface PortletPreferencesService {

	public Map<String, PortletPreference> getDefaultPreferences(PortletWindow portletWindow,PortletRequest portletRequest);
	
	public Map<String, PortletPreference> getStoredPreferences(PortletWindow portletWindow,PortletRequest portletRequest);
	
	public void store(PortletWindow portletWindow,PortletRequest portletRequest,Map<String, PortletPreference> map) throws PortletContainerException;

    public PreferencesValidator getPreferencesValidator(PortletDefinition portletDefinition);
}
